Implementation of the IDEA cipher and MD5 hash functions